import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()

export const purchaseApplyRouter = {
  name: 'purchaseApply',
  component: () => import('@/components/MenuPage/MenuPage.vue'),
  path: 'purchaseApply',
  meta: {
    title: t('router.purchase.purchaseApply'),
    alwaysShow: true
  }, 
  children: [
    {
      name: 'PurchaseApplyOrder',
      path: '/purchaseApplyOrder',
      component: () =>
        import('@/views/SupplyChain/Purchase/PurchaseApply/PurchaseApplyOrder.vue'),
      meta: {
        title: t('router.purchase.purchaseApplyOrder')
      }
    },
    {
      name: 'PurchaseApplyOrderList',
      path: '/purchaseApplyOrderList',
      component: () =>
        import('@/views/SupplyChain/Purchase/PurchaseApply/PurchaseApplyOrderList.vue'),
      meta: {
        title: t('router.purchase.purchaseApplyOrderList')
      }
    },
    {
      name: 'SupportingMaterialsApply',
      path: '/supportingMaterialsApply',
      component: () =>
        import('@/views/SupplyChain/Purchase/PurchaseApply/SupportingMaterialsApply.vue'),
      meta: {
        title: t('router.purchase.supportingMaterialsApply')
      }
    },
    {
      name: 'PurchasePlanList',
      path: '/purchasePlanList',
      component: () =>
        import('@/views/SupplyChain/Purchase/PurchaseApply/PurchasePlanList.vue'),
      meta: {
        title: t('router.purchase.purchasePlanList')
      }
    },
    {
      name: 'IntelligencePurchasr',
      path: '/intelligencePurchasr',
      component: () =>
        import('@/views/SupplyChain/Purchase/PurchaseApply/IntelligencePurchasr.vue'),
      meta: {
        title: t('router.purchase.intelligencePurchasr')
      }
    },
    {
      name: 'TimeIntelligencePurchasr',
      path: '/timeIntelligencePurchasr',
      component: () =>
        import('@/views/SupplyChain/Purchase/PurchaseApply/TimeIntelligencePurchasr.vue'),
      meta: {
        title: t('router.purchase.timeIntelligencePurchasr')
      }
    }
  ]
}
